﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PartyFinderMP.master" AutoEventWireup="true" CodeFile="FindParty.aspx.cs" Inherits="Index_FindParty" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div>
        <h2>Find party
        </h2>
    </div>
    <div class="BoxOuter">
        <div class="BoxInner">

            <table>
                <tr>
                    <td>
                        <div class="input-append" id="SearchPartyInnerBox">
                            <asp:TextBox CssClass="span3" ID="TxtCitynameSearch" runat="server" />
                            <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" WatermarkText="Bynavn" TargetControlID="TxtCitynameSearch" runat="server"></asp:TextBoxWatermarkExtender>
                            <asp:TextBox CssClass="span2" ID="TxtPostalCodeSearch" runat="server" />
                            <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender2" WatermarkText="Postnr" TargetControlID="TxtPostalCodeSearch" runat="server"></asp:TextBoxWatermarkExtender>
                            <asp:Button ID="BtBack" runat="server" CssClass="btn" Width="100px" Text="Tilbage" OnClick="BtBack_Click" />
                            <asp:Button CssClass="btn" ID="BtnPartySearch" Width="100px" Text="Søg" runat="server" OnClick="BtnPartySearch_Click" />
                        </div>
                    </td>

                </tr>
                <tr>
                    <td>
                        <asp:Label ID="LitSearchingForTxt" CssClass="LitSearchingForTxt" Visible="false" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <div>

                            <asp:ListView ID="LWSearchlistParty" GroupItemCount="4" runat="server">
                                <LayoutTemplate>
                                    <table>
                                        <asp:PlaceHolder runat="server" ID="groupPlaceHolder" />
                                    </table>
                                </LayoutTemplate>
                                <GroupTemplate>
                                    <tr>
                                        <asp:PlaceHolder runat="server" ID="itemPlaceHolder" />
                                    </tr>

                                </GroupTemplate>
                                <ItemTemplate>
                                    <td id="SearchPartyBoxOuter" align="center">
                                        <a href="PartySite.aspx?partyid=<%#Eval("PartyId") %>">
                                            <div id="SearchPartyBoxInner" align="center">
                                                <table>
                                                    <tr>
                                                        <td>
                                                            <asp:Literal ID="LitTema" Text='<%#Eval("Tema") %>' runat="server"></asp:Literal>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <asp:Literal ID="LitDate" Text='<%#Eval("Date") %>' runat="server"></asp:Literal>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>Deltagere:
                                                            <asp:Literal ID="LitStreet" Text='<%#Eval("Count") %>' runat="server"></asp:Literal>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                        </a>
                                    </td>
                                </ItemTemplate>
                            </asp:ListView>
                        </div>
                    </td>
                </tr>
            </table>
        </div>

    </div>
    <br />
</asp:Content>

